package com.zou.dataStruct.Set;

public class BSTSet<E extends Comparable<E>> implements Set<E> {

    private BSTree bsTree;

    public BSTSet() {
        this.bsTree = new BSTree<>();
    }

    @Override
    public void add(E e) {
        bsTree.add(e);
    }

    @Override
    public boolean contains(E e) {
        return bsTree.contains(e);
    }

    @Override
    public void remove(E e) {
        bsTree.remove(e);
    }

    @Override
    public int getSize() {
        return bsTree.getSize();
    }

    @Override
    public boolean isEmpty() {
        return bsTree.isEmpty();
    }
}
